package cn.myjerry.observer2;

import java.util.Observable;

public class ConcreteSubject extends Observable {

	private int state;

	public void setState(int state) {
		this.state = state;
		
		setChanged();
		notifyObservers(state);
	}

	public int getState() {
		return state;
	}
	
}
